Display archive errors in the echo area instead of inserting to the file buffer.
authorJuri Linkov <juri@jurta.org>
Fri, 28 Sep 2012 16:38:07 +0000 (19:38 +0300)
committerJuri Linkov <juri@jurta.org>
Fri, 28 Sep 2012 16:38:07 +0000 (19:38 +0300)
commit77d3bbe98470b42da4f2f2479041c2a000e47878
tree523df06f2cf593c60983a5b0a8a9b8bba14c52b6
parent63dc0a6f9f84c380e890938f68741caad5a35f19
Display archive errors in the echo area instead of inserting to the file buffer.

* lisp/arc-mode.el (archive-extract-by-stdout): Change arg STDERR-FILE
to STDERR-TEST that can be a regexp matching a successful output.
Create a temporary file and redirect stderr to it.  Search for
STDERR-TEST in the stderr output and display it in the echo area
if no match is found.
(archive-extract-by-file): New function like
`archive-extract-by-stdout' but extracting archives to files
and looking for successful matches in stdout.  Function body is
mostly copied from `archive-rar-extract'.
(archive-rar-extract): Use `archive-extract-by-file'.
(archive-7z-extract): Use `archive-extract-by-stdout'.
lisp/ChangeLog
lisp/arc-mode.el